package org.jeecg.modules.in.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.in.entity.InOrderDetail;
import org.jeecg.modules.in.entity.InOrderInfo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 入库任务
 * @Author: jeecg-boot
 * @Date: 2024-11-29
 * @Version: V1.0
 */
public interface IInOrderInfoService extends IService<InOrderInfo> {

    void saveWarehousingEntry(InOrderInfo inOrder, List<InOrderDetail> inOrderDetailList);

    void releaseWarehousingEntry(String id);

    /**
     * 添加一对多
     */
    public void saveMain(InOrderInfo inOrderInfo, List<InOrderDetail> inOrderDetailList);

    /**
     * 修改一对多
     */
    public void updateMain(InOrderInfo inOrderInfo, List<InOrderDetail> inOrderDetailList);

    /**
     * 删除一对多
     */
    public void delMain(String id);

    /**
     * 批量删除一对多
     */
    public void delBatchMain(Collection<? extends Serializable> idList);

}
